The columns are wrong due to selecting the wrong field names in the query.

Cause:


The field names in the 'Field' row of a query in Design view are not the desired ones or the field names are in the wrong order.

Solution:


In Query Design view, select the desired fields in the 'Fields' row or rearrange the columns in the query grid.